﻿<Window x:Class="ACPLogAnalyzer.ConfigPlot"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:ACPLogAnalyzer"
        xmlns:DV="clr-namespace:System.Windows.Controls.DataVisualization.VisualStudio.Design;assembly=System.Windows.Controls.DataVisualization.Toolkit.VisualStudio.Design"
        xmlns:DVC="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"       
        xmlns:VIZ="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"        
        Title="Configure Graph Plot" Height="506" Width="914" WindowStartupLocation="CenterScreen" ShowInTaskbar="True" ResizeMode="NoResize" Loaded="Window_Loaded" Closing="Window_Closing">
    <Window.Resources>
        <VIZ:StringFormatConverter x:Key="StringFormatConverter1" />
    </Window.Resources>
    <Grid>
        <TabControl Height="404" HorizontalAlignment="Left" Margin="12,12,0,0" Name="tabControl1" VerticalAlignment="Top" Width="423">
            
            <TabItem Header="Text" Name="tabItemGraphText" Selector.IsSelected="True">
                <Grid>
                    <TextBlock Height="178" HorizontalAlignment="Left" Margin="17,188,0,0" Name="textBlockExample" Text="Axis labels &amp; data series key" TextAlignment="Center" TextWrapping="NoWrap" VerticalAlignment="Top" Width="372" />
                    <ComboBox Height="30" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="99,14,0,0" Name="FontSelector" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="290" SelectionChanged="FontSelector_SelectionChanged">
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <TextBlock FontFamily="{Binding}" Text="{Binding}" />
                            </DataTemplate>
                        </ComboBox.ItemTemplate>
                    </ComboBox>
                    <Label Content="Font:" Height="28" HorizontalAlignment="Left" Margin="15,16,0,0" Name="label1" VerticalAlignment="Top" Width="44" />
                    <Label Content="Font Size:" Height="28" HorizontalAlignment="Left" Margin="15,60,0,0" Name="label2" VerticalAlignment="Top" />
                    <Label Content="Font Weight:" Height="28" HorizontalAlignment="Left" Margin="15,94,0,0" Name="label3" VerticalAlignment="Top" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="99,94,0,0" Name="comboBoxWeight" SelectedValuePath="Content" VerticalAlignment="Top" Width="111" SelectionChanged="comboBoxWeight_SelectionChanged">
                        <ComboBoxItem Content="Normal" />
                        <ComboBoxItem Content="Bold" />
                        <ComboBoxItem Content="Thin" />
                    </ComboBox>
                    <Slider Height="23" HorizontalAlignment="Left" IsSnapToTickEnabled="True" Margin="139,60,0,0" Maximum="72" Minimum="5" Name="sliderFontSize" SmallChange="1" TickPlacement="None" Value="{Binding Path=PlotFontSize, Mode=TwoWay}" VerticalAlignment="Top" Width="250" ValueChanged="sliderFontSize_ValueChanged" />
                    <Label Content="Font Style:" Height="28" HorizontalAlignment="Left" Margin="215,94,0,0" Name="label4" VerticalAlignment="Top" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="286,94,0,0" Name="comboBoxStyle" SelectedValuePath="Content" VerticalAlignment="Top" Width="103" SelectionChanged="comboBoxStyle_SelectionChanged">
                        <ComboBoxItem Content="Normal" />
                        <ComboBoxItem Content="Italic" />
                        <ComboBoxItem Content="Oblique" />
                    </ComboBox>
                    <Label BorderBrush="#FF626262" BorderThickness="1" Content="{Binding Path=Value, Mode=OneWay, ElementName=sliderFontSize}" Height="28" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Margin="99,57,0,0" Name="labelFontSize" VerticalAlignment="Top" Width="34" />
                    <Label Content="Font Color:" Height="28" HorizontalAlignment="Left" Margin="15,128,0,0" Name="label5" VerticalAlignment="Top" />
                    <Label Background="Black" Cursor="Hand" Height="28" HorizontalAlignment="Left" Margin="99,128,0,0" Name="labelFgColor" VerticalAlignment="Top" Width="290" MouseUp="labelFgColor_MouseUp" />
                </Grid>
            </TabItem>
            
            <TabItem Header="Title" Name="tabItemGraphTextTitle">
                <Grid>
                    <TextBlock Height="177" HorizontalAlignment="Left" Margin="17,189,0,0" Name="textBlockExampleTitle" Text="Title text" TextAlignment="Center" TextWrapping="NoWrap" VerticalAlignment="Top" Width="372" />
                    <ComboBox Height="30" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="99,14,0,0" Name="FontSelectorTitle" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="290" SelectionChanged="FontSelectorTitle_SelectionChanged">
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <TextBlock FontFamily="{Binding}" Text="{Binding}" />
                            </DataTemplate>
                        </ComboBox.ItemTemplate>
                    </ComboBox>
                    <Label Content="Font:" Height="28" HorizontalAlignment="Left" Margin="15,16,0,0" Name="label8" VerticalAlignment="Top" Width="44" />
                    <Label Content="Font Size:" Height="28" HorizontalAlignment="Left" Margin="15,60,0,0" Name="label9" VerticalAlignment="Top" />
                    <Label Content="Font Weight:" Height="28" HorizontalAlignment="Left" Margin="15,94,0,0" Name="label10" VerticalAlignment="Top" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="99,94,0,0" Name="comboBoxWeightTitle" SelectedValuePath="Content" VerticalAlignment="Top" Width="111" SelectionChanged="comboBoxWeightTitle_SelectionChanged">
                        <ComboBoxItem Content="Normal" />
                        <ComboBoxItem Content="Bold" />
                        <ComboBoxItem Content="Thin" />
                    </ComboBox>
                    <Slider Height="23" HorizontalAlignment="Left" IsSnapToTickEnabled="True" Margin="139,60,0,0" Maximum="72" Minimum="5" Name="sliderFontSizeTitle" SmallChange="1" TickPlacement="None" Value="{Binding Path=PlotFontSizeTitle, Mode=TwoWay}" VerticalAlignment="Top" Width="250" ValueChanged="sliderFontSizeTitle_ValueChanged" />
                    <Label Content="Font Style:" Height="28" HorizontalAlignment="Left" Margin="215,94,0,0" Name="label11" VerticalAlignment="Top" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="286,94,0,0" Name="comboBoxStyleTitle" SelectedValuePath="Content" VerticalAlignment="Top" Width="103" SelectionChanged="comboBoxStyleTitle_SelectionChanged">
                        <ComboBoxItem Content="Normal" />
                        <ComboBoxItem Content="Italic" />
                        <ComboBoxItem Content="Oblique" />
                    </ComboBox>
                    <Label BorderBrush="#FF626262" BorderThickness="1" Content="{Binding Path=Value, Mode=OneWay, ElementName=sliderFontSizeTitle}" Height="28" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Margin="99,57,0,0" Name="labelFontSizeTitle" VerticalAlignment="Top" Width="34" />
                    <Label Content="Font Color:" Height="28" HorizontalAlignment="Left" Margin="15,128,0,0" Name="label13" VerticalAlignment="Top" />
                    <Label Background="Black" Cursor="Hand" Height="28" HorizontalAlignment="Left" Margin="99,128,0,0" Name="labelFgColorTitle" VerticalAlignment="Top" Width="290" MouseUp="labelFgColorTitle_MouseUp" />
                </Grid>
            </TabItem>

            <TabItem Header="Graph Colors" Name="tabItemColors">
                <Grid>
                    <Label Background="Black" Cursor="Hand" Height="28" HorizontalAlignment="Left" Margin="100,14,0,0" Name="labelGraphWndBg" VerticalAlignment="Top" Width="290" MouseUp="labelGraphWndBg_MouseUp" />
                    <Label Background="Black" Cursor="Hand" Height="28" HorizontalAlignment="Left" Margin="100,50,0,0" Name="labelKeyBg" VerticalAlignment="Top" Width="290" MouseUp="labelKeyBg_MouseUp" />
                    <Label Content="Background:" Height="28" HorizontalAlignment="Left" Margin="16,14,0,0" Name="label21" VerticalAlignment="Top" Width="78" />
                    <Label Content="Key:" Height="28" HorizontalAlignment="Left" Margin="16,50,0,0" Name="label22" VerticalAlignment="Top" Width="78" />
                    <CheckBox Content="Key background transparent (blends with graph bg)" Height="18" HorizontalAlignment="Left" Margin="100,93,0,0" Name="checkBoxKeyTransparent" VerticalAlignment="Top" Width="290" Checked="checkBoxKeyTransparent_Checked" Unchecked="checkBoxKeyTransparent_Unchecked" />
                </Grid>
            </TabItem>
            
            <TabItem Header="Primary Series" Name="tabItemSeries1">
                <Grid>
                    <Label Background="Black" Cursor="Hand" Height="28" HorizontalAlignment="Left" Margin="101,14,0,0" Name="labelPrimaryColor" VerticalAlignment="Top" Width="290" MouseUp="labelPrimaryColor_MouseUp" />
                    <Label Content="Line Color:" Height="28" HorizontalAlignment="Left" Margin="17,14,0,0" Name="label15" VerticalAlignment="Top" Width="78" />
                    <Label Content="Thickness:" Height="28" HorizontalAlignment="Left" Margin="17,48,0,0" Name="label16" VerticalAlignment="Top" Width="78" />
                    <CheckBox Content="Show data points" Height="21" HorizontalAlignment="Left" Margin="101,82,0,0" Name="checkBoxShowPointsMain" VerticalAlignment="Top" Width="181" IsChecked="True" Checked="checkBoxShowPointsMain_Checked" Unchecked="checkBoxShowPointsMain_Unchecked" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="101,48,0,0" Name="textBoxPrimaryThickness" VerticalAlignment="Top" Width="63" Text="1.5" TextChanged="textBoxPrimaryThickness_TextChanged" />
                </Grid>
            </TabItem>
            
            <TabItem Header="Secondary Series" Name="tabItemSeries2">
                <Grid>
                    <Label Background="Black" Cursor="Hand" Height="28" HorizontalAlignment="Left" Margin="101,14,0,0" Name="labelSecondaryColor" VerticalAlignment="Top" Width="290" MouseUp="labelSecondaryColor_MouseUp" />
                    <Label Content="Line Color:" Height="28" HorizontalAlignment="Left" Margin="17,14,0,0" Name="label12" VerticalAlignment="Top" Width="78" />
                    <Label Content="Thickness:" Height="28" HorizontalAlignment="Left" Margin="17,48,0,0" Name="label14" VerticalAlignment="Top" Width="78" />
                    <CheckBox Content="Show data points" Height="21" HorizontalAlignment="Left" IsChecked="False" Margin="101,82,0,0" Name="checkBoxSecondaryShowDataPoints" VerticalAlignment="Top" Width="181" Checked="checkBoxSecondaryShowDataPoints_Checked" Unchecked="checkBoxSecondaryShowDataPoints_Unchecked" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="101,48,0,0" Name="textBoxSecondaryThickness" VerticalAlignment="Top" Width="63" Text="1.5" TextChanged="textBoxSecondaryThickness_TextChanged" />
                </Grid>
            </TabItem>

            <TabItem Header="Tertiary Series" Name="tabItemSeries3">
                <Grid>
                    <Label Background="Black" Cursor="Hand" Height="28" HorizontalAlignment="Left" Margin="101,14,0,0" Name="labelTertiaryColor" VerticalAlignment="Top" Width="290" MouseUp="labelTertiaryColor_MouseUp" />
                    <Label Content="Line Color:" Height="28" HorizontalAlignment="Left" Margin="17,14,0,0" Name="label102" VerticalAlignment="Top" Width="78" />
                    <Label Content="Thickness:" Height="28" HorizontalAlignment="Left" Margin="17,48,0,0" Name="label104" VerticalAlignment="Top" Width="78" />
                    <CheckBox Content="Show data points" Height="21" HorizontalAlignment="Left" IsChecked="True" Margin="101,82,0,0" Name="checkBoxTertiaryShowDataPoints" VerticalAlignment="Top" Width="181" Checked="checkBoxTertiaryShowDataPoints_Checked" Unchecked="checkBoxTertiaryShowDataPoints_Unchecked" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="101,48,0,0" Name="textBoxTertiaryThickness" VerticalAlignment="Top" Width="63" Text="1.5" TextChanged="textBoxTertiaryThickness_TextChanged" />
                </Grid>
            </TabItem>
        </TabControl>
        <StackPanel Height="49" HorizontalAlignment="Left" Margin="0,424,0,0" Name="stackPanel1" VerticalAlignment="Top" Width="885">
            <Button Content="Save &amp; Close" Height="40" Name="buttonClose" Width="155" Click="buttonClose_Click" />
        </StackPanel>

            
        <GroupBox Header="Example Graph" Height="404" HorizontalAlignment="Left" Margin="448,12,0,0" Name="groupBox1" VerticalAlignment="Top" Width="443">
            <Grid>
                <local:GraphUserControl x:Name="graphUC" Margin="11,24,6,18"></local:GraphUserControl>                
            </Grid>
        </GroupBox>
    </Grid>
</Window>
